import pytest
from selenium import webdriver


@pytest.fixture
def browser():
    driver = webdriver.Chrome()
    yield driver
    driver.quit()


def test_search_in_google(browser):
    browser.get("http://www.google.com")
    assert "Google" in browser.title

